package com.ruoyi.order.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售明细管理对象 sales_detail
 * 
 * @author ruoyi
 * @date 2025-01-01
 */
public class SalesDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编码 */
    private String orderId;

    /** 商品编码 */
    private String productId;

    private String addressId;

    /** 仓库编码 */
    @Excel(name = "仓库编码")
    private String warehouseCode;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal subtotal;

    /** 商品销售数量 */
    @Excel(name = "商品销售数量")
    private Long productSalesQuantity;

    /** 优惠 */
    @Excel(name = "优惠")
    private BigDecimal discount;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal totalAmount;

    private String status;

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setWarehouseCode(String warehouseCode) 
    {
        this.warehouseCode = warehouseCode;
    }

    public String getWarehouseCode() 
    {
        return warehouseCode;
    }
    public void setSubtotal(BigDecimal subtotal) 
    {
        this.subtotal = subtotal;
    }

    public BigDecimal getSubtotal() 
    {
        return subtotal;
    }
    public void setProductSalesQuantity(Long productSalesQuantity) 
    {
        this.productSalesQuantity = productSalesQuantity;
    }

    public Long getProductSalesQuantity() 
    {
        return productSalesQuantity;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("warehouseCode", getWarehouseCode())
            .append("subtotal", getSubtotal())
            .append("productSalesQuantity", getProductSalesQuantity())
            .append("discount", getDiscount())
            .append("totalAmount", getTotalAmount())
            .toString();
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
